﻿#include <stdio.h>

void h(int* a, int* b)
{
	*a = *a ^ *b;
	*b = *a ^ *b;
	*a = *a ^ *b;
}

int main()
{
	int a, b;
	scanf_s("%d %d", &a, &b);
	h(&a,&b);
	printf("%d %d\n", a,b);
	
	return 0;
}